package com.ourteam.workspace.dao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;

/**
 * Template Name : DAO查询对象 Template Version : 1 Template Last Modfiy Date : Sat Aug 19 10:06:32 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:29 Warning ! This file will be overwrite when
 * regenerate !
 */
public class WorkspaceResourceBusinessPackageRelateDAOQueryBean extends BaseQueryBean {

  public WorkspaceResourceBusinessPackageRelateDAOQueryBean() {
    super();
  }

  public WorkspaceResourceBusinessPackageRelateDAOQueryBean(BaseQueryBean aQueryBean) {
    super(aQueryBean);
  }

  public WorkspaceResourceBusinessPackageRelateDAOQueryBean(
      BaseQueryBean aQueryBean, Map tableReplaceMap) {
    super(aQueryBean, tableReplaceMap);
  }

  public Criteria createCriteria() {

    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  protected Criteria createCriteriaInternal() {
    return new Criteria(this);
  }

  public void addIdSelectProperty() {
    addIdSelectProperty("id");
  }

  public void addIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.Id, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.Id, "id");
    }
  }

  public void addBusinessPcakageIdSelectProperty() {
    addBusinessPcakageIdSelectProperty("businessPcakageId");
  }

  public void addBusinessPcakageIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId, "businessPcakageId");
    }
  }

  public void addDescriptionSelectProperty() {
    addDescriptionSelectProperty("description");
  }

  public void addDescriptionSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.Description, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.Description, "description");
    }
  }

  public void addStatusSelectProperty() {
    addStatusSelectProperty("status");
  }

  public void addStatusSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.Status, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.Status, "status");
    }
  }

  public void addWorkspaceResourceIdSelectProperty() {
    addWorkspaceResourceIdSelectProperty("workspaceResourceId");
  }

  public void addWorkspaceResourceIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId, "workspaceResourceId");
    }
  }

  public void addLastGenCodeTimeSelectProperty() {
    addLastGenCodeTimeSelectProperty("lastGenCodeTime");
  }

  public void addLastGenCodeTimeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime, "lastGenCodeTime");
    }
  }

  public void addSubmitterIdSelectProperty() {
    addSubmitterIdSelectProperty("submitterId");
  }

  public void addSubmitterIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId, "submitterId");
    }
  }

  public void addSubmitterNameSelectProperty() {
    addSubmitterNameSelectProperty("submitterName");
  }

  public void addSubmitterNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName, "submitterName");
    }
  }

  public void addResourceNameSelectProperty() {
    addResourceNameSelectProperty("resourceName");
  }

  public void addResourceNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName, "resourceName");
    }
  }

  public void addResourceTypeSelectProperty() {
    addResourceTypeSelectProperty("resourceType");
  }

  public void addResourceTypeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType, "resourceType");
    }
  }

  public void addResourcePathSelectProperty() {
    addResourcePathSelectProperty("resourcePath");
  }

  public void addResourcePathSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath, "resourcePath");
    }
  }

  public void addWorkspaceIdSelectProperty() {
    addWorkspaceIdSelectProperty("workspaceId");
  }

  public void addWorkspaceIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId, aAlias);
    } else {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId, "workspaceId");
    }
  }

  public void addResourceOrderIndexSelectProperty() {
    addResourceOrderIndexSelectProperty("resourceOrderIndex");
  }

  public void addResourceOrderIndexSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex, "resourceOrderIndex");
    }
  }

  public void addBusinessPackageNameSelectProperty() {
    addBusinessPackageNameSelectProperty("businessPackageName");
  }

  public void addBusinessPackageNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName, "businessPackageName");
    }
  }

  public void addBusinessPackageTypeSelectProperty() {
    addBusinessPackageTypeSelectProperty("businessPackageType");
  }

  public void addBusinessPackageTypeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType, "businessPackageType");
    }
  }

  public void addBusinessDomainIdSelectProperty() {
    addBusinessDomainIdSelectProperty("businessDomainId");
  }

  public void addBusinessDomainIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId, "businessDomainId");
    }
  }

  public void addBusinessDomainNameSelectProperty() {
    addBusinessDomainNameSelectProperty("businessDomainName");
  }

  public void addBusinessDomainNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName, aAlias);
    } else {
      addSelectProperty(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName, "businessDomainName");
    }
  }

  public void addAllSelectProperties() {

    addIdSelectProperty();

    addBusinessPcakageIdSelectProperty();

    addDescriptionSelectProperty();

    addStatusSelectProperty();

    addWorkspaceResourceIdSelectProperty();

    addLastGenCodeTimeSelectProperty();

    addSubmitterIdSelectProperty();

    addSubmitterNameSelectProperty();

    addResourceNameSelectProperty();

    addResourceTypeSelectProperty();

    addResourcePathSelectProperty();

    addWorkspaceIdSelectProperty();

    addResourceOrderIndexSelectProperty();

    addBusinessPackageNameSelectProperty();

    addBusinessPackageTypeSelectProperty();

    addBusinessDomainIdSelectProperty();

    addBusinessDomainNameSelectProperty();
  }

  public static class Criteria
      extends BaseWhereCriterion<WorkspaceResourceBusinessPackageRelateDAOQueryBean> {

    protected Criteria(WorkspaceResourceBusinessPackageRelateDAOQueryBean aParentObject) {
      super(aParentObject);
    }

    public Criteria andIdIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " is null");
      return this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " is not null");
      return this;
    }

    public Criteria andIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Id
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.Id
              + " <> ''");
      return this;
    }

    public Criteria andIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.Id
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.Id
              + " = '')");
      return this;
    }

    public Criteria andIdEqualTo(long value) {
      return andIdEqualTo(Long.valueOf(value));
    }

    public Criteria andIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " = ", value, "id");
      return this;
    }

    public Criteria andIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Id);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotEqualTo(long value) {
      return andIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToOrIsNull(long value) {
      return andIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Id
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.Id
              + " <>",
          value,
          "id");
      return this;
    }

    public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Id);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThan(long value) {
      return andIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " >", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Id);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(long value) {
      return andIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " >=", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Id);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThan(long value) {
      return andIdLessThan(Long.valueOf(value));
    }

    public Criteria andIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " <", value, "id");
      return this;
    }

    public Criteria andIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Id);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(long value) {
      return andIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " <=", value, "id");
      return this;
    }

    public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Id);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdIn(long[] values) {
      if (values.length == 1) {
        return andIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Id + " in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Id + " not in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Id + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andBusinessPcakageIdIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " is null");
      return this;
    }

    public Criteria andBusinessPcakageIdIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " is not null");
      return this;
    }

    public Criteria andBusinessPcakageIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId
              + " <> ''");
      return this;
    }

    public Criteria andBusinessPcakageIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId
              + " = '')");
      return this;
    }

    public Criteria andBusinessPcakageIdEqualTo(long value) {
      return andBusinessPcakageIdEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " = ",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPcakageIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdNotEqualTo(long value) {
      return andBusinessPcakageIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdNotEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " <>",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdNotEqualToOrIsNull(long value) {
      return andBusinessPcakageIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId
              + " <>",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPcakageIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdGreaterThan(long value) {
      return andBusinessPcakageIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdGreaterThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " >",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPcakageIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdGreaterThanOrEqualTo(long value) {
      return andBusinessPcakageIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " >=",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPcakageIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdLessThan(long value) {
      return andBusinessPcakageIdLessThan(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdLessThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " <",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPcakageIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdLessThanOrEqualTo(long value) {
      return andBusinessPcakageIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessPcakageIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " <=",
          value,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPcakageIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdIn(long[] values) {
      if (values.length == 1) {
        return andBusinessPcakageIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " in",
            values,
            "businessPcakageId");
        return this;
      }
    }

    public Criteria andBusinessPcakageIdNotIn(long[] values) {
      if (values.length == 1) {
        return andBusinessPcakageIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " not in",
            values,
            "businessPcakageId");
        return this;
      }
    }

    public Criteria andBusinessPcakageIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andBusinessPcakageIdEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " in",
            values,
            "businessPcakageId");
        return this;
      }
    }

    public Criteria andBusinessPcakageIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andBusinessPcakageIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " not in",
            values,
            "businessPcakageId");
        return this;
      }
    }

    public Criteria andBusinessPcakageIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andBusinessPcakageIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " in",
            Arrays.asList(values),
            "businessPcakageId");
        return this;
      }
    }

    public Criteria andBusinessPcakageIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andBusinessPcakageIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " not in",
            Arrays.asList(values),
            "businessPcakageId");
        return this;
      }
    }

    public Criteria andBusinessPcakageIdIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessPcakageIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPcakageIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " between",
          value1,
          value2,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " between",
          value1,
          value2,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " not between",
          value1,
          value2,
          "businessPcakageId");
      return this;
    }

    public Criteria andBusinessPcakageIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPcakageId + " not between",
          value1,
          value2,
          "businessPcakageId");
      return this;
    }

    public Criteria andDescriptionIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Description + " is null");
      return this;
    }

    public Criteria andDescriptionIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Description + " is not null");
      return this;
    }

    public Criteria andDescriptionIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.Description
              + " <> ''");
      return this;
    }

    public Criteria andDescriptionIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.Description
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.Description
              + " = '')");
      return this;
    }

    public Criteria andDescriptionEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " = ", value, "description");
      return this;
    }

    public Criteria andDescriptionEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Description);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " <>", value, "description");
      return this;
    }

    public Criteria andDescriptionNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.Description
              + " <>",
          value,
          "description");
      return this;
    }

    public Criteria andDescriptionNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Description);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " >", value, "description");
      return this;
    }

    public Criteria andDescriptionGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Description);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " >=", value, "description");
      return this;
    }

    public Criteria andDescriptionGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Description);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " <", value, "description");
      return this;
    }

    public Criteria andDescriptionLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Description);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " <=", value, "description");
      return this;
    }

    public Criteria andDescriptionLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Description);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " like",
          buffer.toString(),
          "description");
      return this;
    }

    public Criteria andDescriptionNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " not like",
          buffer.toString(),
          "description");
      return this;
    }

    public Criteria andDescriptionIn(List<String> values) {

      if (values.size() == 1) {
        return andDescriptionEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Description + " in", values, "description");
        return this;
      }
    }

    public Criteria andDescriptionNotIn(List<String> values) {
      if (values.size() == 1) {
        return andDescriptionNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Description + " not in",
            values,
            "description");
        return this;
      }
    }

    public Criteria andDescriptionIn(String[] values) {

      if (values.length == 1) {
        return andDescriptionEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Description + " in",
            Arrays.asList(values),
            "description");
        return this;
      }
    }

    public Criteria andDescriptionNotIn(String[] values) {
      if (values.length == 1) {
        return andDescriptionNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Description + " not in",
            Arrays.asList(values),
            "description");
        return this;
      }
    }

    public Criteria andDescriptionIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " between",
          value1,
          value2,
          "description");
      return this;
    }

    public Criteria andDescriptionNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Description + " not between",
          value1,
          value2,
          "description");
      return this;
    }

    public Criteria andStatusIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " is null");
      return this;
    }

    public Criteria andStatusIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " is not null");
      return this;
    }

    public Criteria andStatusIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Status
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.Status
              + " <> ''");
      return this;
    }

    public Criteria andStatusIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.Status
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.Status
              + " = '')");
      return this;
    }

    public Criteria andStatusEqualTo(Integer value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " = ", value, "status");
      return this;
    }

    public Criteria andStatusEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Status);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotEqualTo(Integer value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " <>", value, "status");
      return this;
    }

    public Criteria andStatusNotEqualToOrIsNull(Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Status
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.Status
              + " <>",
          value,
          "status");
      return this;
    }

    public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Status);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThan(Integer value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " >", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Status);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(Integer value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " >=", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Status);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThan(Integer value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " <", value, "status");
      return this;
    }

    public Criteria andStatusLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Status);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(Integer value) {

      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " <=", value, "status");
      return this;
    }

    public Criteria andStatusLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.Status);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusIn(List<Integer> values) {

      if (values.size() == 1) {
        return andStatusEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " in", values, "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(List<Integer> values) {
      if (values.size() == 1) {
        return andStatusNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Status + " not in", values, "status");
        return this;
      }
    }

    public Criteria andStatusIn(Integer[] values) {

      if (values.length == 1) {
        return andStatusEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Status + " in",
            Arrays.asList(values),
            "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(Integer[] values) {
      if (values.length == 1) {
        return andStatusNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.Status + " not in",
            Arrays.asList(values),
            "status");
        return this;
      }
    }

    public Criteria andStatusIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.Status + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Status + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusBetween(Integer value1, Integer value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Status + " between", value1, value2, "status");
      return this;
    }

    public Criteria andStatusNotBetween(Integer value1, Integer value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.Status + " not between",
          value1,
          value2,
          "status");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " is null");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " is not null");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId
              + " <> ''");
      return this;
    }

    public Criteria andWorkspaceResourceIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId
              + " = '')");
      return this;
    }

    public Criteria andWorkspaceResourceIdEqualTo(long value) {
      return andWorkspaceResourceIdEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " = ",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " = ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualTo(long value) {
      return andWorkspaceResourceIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdNotEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " <>",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualToOrIsNull(long value) {
      return andWorkspaceResourceIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId
              + " <>",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " <> ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThan(long value) {
      return andWorkspaceResourceIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdGreaterThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " >",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " > ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualTo(long value) {
      return andWorkspaceResourceIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " >=",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " >= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThan(long value) {
      return andWorkspaceResourceIdLessThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdLessThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " <",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " < ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualTo(long value) {
      return andWorkspaceResourceIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " <=",
          value,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceResourceIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " <= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceResourceIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdNotIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceResourceIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " not in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andWorkspaceResourceIdEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andWorkspaceResourceIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " not in",
            values,
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andWorkspaceResourceIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " in",
            Arrays.asList(values),
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andWorkspaceResourceIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " not in",
            Arrays.asList(values),
            "workspaceResourceId");
        return this;
      }
    }

    public Criteria andWorkspaceResourceIdIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andWorkspaceResourceIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " not between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andWorkspaceResourceIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceResourceId + " not between",
          value1,
          value2,
          "workspaceResourceId");
      return this;
    }

    public Criteria andLastGenCodeTimeIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " is null");
      return this;
    }

    public Criteria andLastGenCodeTimeIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " is not null");
      return this;
    }

    public Criteria andLastGenCodeTimeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime
              + " <> ''");
      return this;
    }

    public Criteria andLastGenCodeTimeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime
              + " = '')");
      return this;
    }

    public Criteria andLastGenCodeTimeEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " = ",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " <>",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualToOrIsNull(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime
              + " <>",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThan(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " >",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanOrEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " >=",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeLessThan(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " <",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanOrEqualTo(java.util.Date value) {

      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " <=",
          value,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andLastGenCodeTimeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeIn(List<java.util.Date> values) {

      if (values.size() == 1) {
        return andLastGenCodeTimeEqualTo(values.get(0));
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " in",
            values,
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeNotIn(List<java.util.Date> values) {
      if (values.size() == 1) {
        return andLastGenCodeTimeNotEqualTo(values.get(0));
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " not in",
            values,
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeIn(java.util.Date[] values) {

      if (values.length == 1) {
        return andLastGenCodeTimeEqualTo(values[0]);
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " in",
            Arrays.asList(values),
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeNotIn(java.util.Date[] values) {
      if (values.length == 1) {
        return andLastGenCodeTimeNotEqualTo(values[0]);
      } else {
        addCriterionForJDBCDate(
            IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " not in",
            Arrays.asList(values),
            "lastGenCodeTime");
        return this;
      }
    }

    public Criteria andLastGenCodeTimeIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andLastGenCodeTimeNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andLastGenCodeTimeBetween(java.util.Date value1, java.util.Date value2) {
      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " between",
          value1,
          value2,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andLastGenCodeTimeNotBetween(java.util.Date value1, java.util.Date value2) {
      addCriterionForJDBCDate(
          IWorkspaceResourceBusinessPackageRelateDAO.LastGenCodeTime + " not between",
          value1,
          value2,
          "lastGenCodeTime");
      return this;
    }

    public Criteria andSubmitterIdIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " is null");
      return this;
    }

    public Criteria andSubmitterIdIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " is not null");
      return this;
    }

    public Criteria andSubmitterIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId
              + " <> ''");
      return this;
    }

    public Criteria andSubmitterIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId
              + " = '')");
      return this;
    }

    public Criteria andSubmitterIdEqualTo(long value) {
      return andSubmitterIdEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " = ", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdNotEqualTo(long value) {
      return andSubmitterIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdNotEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " <>", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotEqualToOrIsNull(long value) {
      return andSubmitterIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andSubmitterIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId
              + " <>",
          value,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdGreaterThan(long value) {
      return andSubmitterIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andSubmitterIdGreaterThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " >", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdGreaterThanOrEqualTo(long value) {
      return andSubmitterIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " >=", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdLessThan(long value) {
      return andSubmitterIdLessThan(Long.valueOf(value));
    }

    public Criteria andSubmitterIdLessThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " <", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdLessThanOrEqualTo(long value) {
      return andSubmitterIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andSubmitterIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " <=", value, "submitterId");
      return this;
    }

    public Criteria andSubmitterIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdIn(long[] values) {
      if (values.length == 1) {
        return andSubmitterIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " in", values, "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdNotIn(long[] values) {
      if (values.length == 1) {
        return andSubmitterIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " not in",
            values,
            "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andSubmitterIdEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " in", values, "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andSubmitterIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " not in",
            values,
            "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andSubmitterIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " in",
            Arrays.asList(values),
            "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andSubmitterIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " not in",
            Arrays.asList(values),
            "submitterId");
        return this;
      }
    }

    public Criteria andSubmitterIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " not between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterId + " not between",
          value1,
          value2,
          "submitterId");
      return this;
    }

    public Criteria andSubmitterNameIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " is null");
      return this;
    }

    public Criteria andSubmitterNameIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " is not null");
      return this;
    }

    public Criteria andSubmitterNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName
              + " <> ''");
      return this;
    }

    public Criteria andSubmitterNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName
              + " = '')");
      return this;
    }

    public Criteria andSubmitterNameEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " = ", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " <>", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName
              + " <>",
          value,
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " >", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " >=", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " <", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " <=", value, "submitterName");
      return this;
    }

    public Criteria andSubmitterNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andSubmitterNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " like",
          buffer.toString(),
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " not like",
          buffer.toString(),
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameIn(List<String> values) {

      if (values.size() == 1) {
        return andSubmitterNameEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " in",
            values,
            "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andSubmitterNameNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " not in",
            values,
            "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameIn(String[] values) {

      if (values.length == 1) {
        return andSubmitterNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " in",
            Arrays.asList(values),
            "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameNotIn(String[] values) {
      if (values.length == 1) {
        return andSubmitterNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " not in",
            Arrays.asList(values),
            "submitterName");
        return this;
      }
    }

    public Criteria andSubmitterNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andSubmitterNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " between",
          value1,
          value2,
          "submitterName");
      return this;
    }

    public Criteria andSubmitterNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.SubmitterName + " not between",
          value1,
          value2,
          "submitterName");
      return this;
    }

    public Criteria andResourceNameIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " is null");
      return this;
    }

    public Criteria andResourceNameIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " is not null");
      return this;
    }

    public Criteria andResourceNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceName
              + " <> ''");
      return this;
    }

    public Criteria andResourceNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceName
              + " = '')");
      return this;
    }

    public Criteria andResourceNameEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " = ", value, "resourceName");
      return this;
    }

    public Criteria andResourceNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " <>", value, "resourceName");
      return this;
    }

    public Criteria andResourceNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceName
              + " <>",
          value,
          "resourceName");
      return this;
    }

    public Criteria andResourceNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " >", value, "resourceName");
      return this;
    }

    public Criteria andResourceNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " >=", value, "resourceName");
      return this;
    }

    public Criteria andResourceNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " <", value, "resourceName");
      return this;
    }

    public Criteria andResourceNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " <=", value, "resourceName");
      return this;
    }

    public Criteria andResourceNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " like",
          buffer.toString(),
          "resourceName");
      return this;
    }

    public Criteria andResourceNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " not like",
          buffer.toString(),
          "resourceName");
      return this;
    }

    public Criteria andResourceNameIn(List<String> values) {

      if (values.size() == 1) {
        return andResourceNameEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " in",
            values,
            "resourceName");
        return this;
      }
    }

    public Criteria andResourceNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andResourceNameNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " not in",
            values,
            "resourceName");
        return this;
      }
    }

    public Criteria andResourceNameIn(String[] values) {

      if (values.length == 1) {
        return andResourceNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " in",
            Arrays.asList(values),
            "resourceName");
        return this;
      }
    }

    public Criteria andResourceNameNotIn(String[] values) {
      if (values.length == 1) {
        return andResourceNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " not in",
            Arrays.asList(values),
            "resourceName");
        return this;
      }
    }

    public Criteria andResourceNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " between",
          value1,
          value2,
          "resourceName");
      return this;
    }

    public Criteria andResourceNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceName + " not between",
          value1,
          value2,
          "resourceName");
      return this;
    }

    public Criteria andResourceTypeIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " is null");
      return this;
    }

    public Criteria andResourceTypeIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " is not null");
      return this;
    }

    public Criteria andResourceTypeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceType
              + " <> ''");
      return this;
    }

    public Criteria andResourceTypeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceType
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceType
              + " = '')");
      return this;
    }

    public Criteria andResourceTypeEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " = ", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " <>", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceType
              + " <>",
          value,
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " >", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " >=", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " <", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " <=", value, "resourceType");
      return this;
    }

    public Criteria andResourceTypeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceType);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceTypeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " like",
          buffer.toString(),
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " not like",
          buffer.toString(),
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeIn(List<String> values) {

      if (values.size() == 1) {
        return andResourceTypeEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " in",
            values,
            "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andResourceTypeNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " not in",
            values,
            "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeIn(String[] values) {

      if (values.length == 1) {
        return andResourceTypeEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " in",
            Arrays.asList(values),
            "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeNotIn(String[] values) {
      if (values.length == 1) {
        return andResourceTypeNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " not in",
            Arrays.asList(values),
            "resourceType");
        return this;
      }
    }

    public Criteria andResourceTypeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceTypeBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " between",
          value1,
          value2,
          "resourceType");
      return this;
    }

    public Criteria andResourceTypeNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceType + " not between",
          value1,
          value2,
          "resourceType");
      return this;
    }

    public Criteria andResourcePathIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " is null");
      return this;
    }

    public Criteria andResourcePathIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " is not null");
      return this;
    }

    public Criteria andResourcePathIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath
              + " <> ''");
      return this;
    }

    public Criteria andResourcePathIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath
              + " = '')");
      return this;
    }

    public Criteria andResourcePathEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " = ", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " <>", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath
              + " <>",
          value,
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " >", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " >=", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " <", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " <=", value, "resourcePath");
      return this;
    }

    public Criteria andResourcePathLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourcePathLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " like",
          buffer.toString(),
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " not like",
          buffer.toString(),
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathIn(List<String> values) {

      if (values.size() == 1) {
        return andResourcePathEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " in",
            values,
            "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathNotIn(List<String> values) {
      if (values.size() == 1) {
        return andResourcePathNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " not in",
            values,
            "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathIn(String[] values) {

      if (values.length == 1) {
        return andResourcePathEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " in",
            Arrays.asList(values),
            "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathNotIn(String[] values) {
      if (values.length == 1) {
        return andResourcePathNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " not in",
            Arrays.asList(values),
            "resourcePath");
        return this;
      }
    }

    public Criteria andResourcePathIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourcePathBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " between",
          value1,
          value2,
          "resourcePath");
      return this;
    }

    public Criteria andResourcePathNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourcePath + " not between",
          value1,
          value2,
          "resourcePath");
      return this;
    }

    public Criteria andWorkspaceIdIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " is null");
      return this;
    }

    public Criteria andWorkspaceIdIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " is not null");
      return this;
    }

    public Criteria andWorkspaceIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId
              + " <> ''");
      return this;
    }

    public Criteria andWorkspaceIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId
              + " = '')");
      return this;
    }

    public Criteria andWorkspaceIdEqualTo(long value) {
      return andWorkspaceIdEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " = ", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdNotEqualTo(long value) {
      return andWorkspaceIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdNotEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " <>", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotEqualToOrIsNull(long value) {
      return andWorkspaceIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId
              + " <>",
          value,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdGreaterThan(long value) {
      return andWorkspaceIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdGreaterThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " >", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualTo(long value) {
      return andWorkspaceIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " >=", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdLessThan(long value) {
      return andWorkspaceIdLessThan(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdLessThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " <", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdLessThanOrEqualTo(long value) {
      return andWorkspaceIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andWorkspaceIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " <=", value, "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andWorkspaceIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " in", values, "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdNotIn(long[] values) {
      if (values.length == 1) {
        return andWorkspaceIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " not in",
            values,
            "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andWorkspaceIdEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " in", values, "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andWorkspaceIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " not in",
            values,
            "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andWorkspaceIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " in",
            Arrays.asList(values),
            "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andWorkspaceIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " not in",
            Arrays.asList(values),
            "workspaceId");
        return this;
      }
    }

    public Criteria andWorkspaceIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andWorkspaceIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " not between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andWorkspaceIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.WorkspaceId + " not between",
          value1,
          value2,
          "workspaceId");
      return this;
    }

    public Criteria andResourceOrderIndexIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " is null");
      return this;
    }

    public Criteria andResourceOrderIndexIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " is not null");
      return this;
    }

    public Criteria andResourceOrderIndexIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex
              + " <> ''");
      return this;
    }

    public Criteria andResourceOrderIndexIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex
              + " = '')");
      return this;
    }

    public Criteria andResourceOrderIndexEqualTo(int value) {
      return andResourceOrderIndexEqualTo(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexEqualTo(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " = ",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceOrderIndexEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceOrderIndexNotEqualTo(int value) {
      return andResourceOrderIndexNotEqualTo(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexNotEqualTo(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " <>",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexNotEqualToOrIsNull(int value) {
      return andResourceOrderIndexNotEqualToOrIsNull(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexNotEqualToOrIsNull(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex
              + " <>",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceOrderIndexNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " <> ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andResourceOrderIndexGreaterThan(int value) {
      return andResourceOrderIndexGreaterThan(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexGreaterThan(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " >",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceOrderIndexGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceOrderIndexGreaterThanOrEqualTo(int value) {
      return andResourceOrderIndexGreaterThanOrEqualTo(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexGreaterThanOrEqualTo(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " >=",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceOrderIndexGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " >= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andResourceOrderIndexLessThan(int value) {
      return andResourceOrderIndexLessThan(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexLessThan(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " <",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceOrderIndexLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andResourceOrderIndexLessThanOrEqualTo(int value) {
      return andResourceOrderIndexLessThanOrEqualTo(Integer.valueOf(value));
    }

    public Criteria andResourceOrderIndexLessThanOrEqualTo(java.lang.Integer value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " <=",
          value,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andResourceOrderIndexLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " <= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andResourceOrderIndexIn(int[] values) {
      if (values.length == 1) {
        return andResourceOrderIndexEqualTo((java.lang.Integer) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " in",
            values,
            "resourceOrderIndex");
        return this;
      }
    }

    public Criteria andResourceOrderIndexNotIn(int[] values) {
      if (values.length == 1) {
        return andResourceOrderIndexNotEqualTo((java.lang.Integer) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " not in",
            values,
            "resourceOrderIndex");
        return this;
      }
    }

    public Criteria andResourceOrderIndexIn(List<java.lang.Integer> values) {

      if (values.size() == 1) {
        return andResourceOrderIndexEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " in",
            values,
            "resourceOrderIndex");
        return this;
      }
    }

    public Criteria andResourceOrderIndexNotIn(List<java.lang.Integer> values) {
      if (values.size() == 1) {
        return andResourceOrderIndexNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " not in",
            values,
            "resourceOrderIndex");
        return this;
      }
    }

    public Criteria andResourceOrderIndexIn(java.lang.Integer[] values) {

      if (values.length == 1) {
        return andResourceOrderIndexEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " in",
            Arrays.asList(values),
            "resourceOrderIndex");
        return this;
      }
    }

    public Criteria andResourceOrderIndexNotIn(java.lang.Integer[] values) {
      if (values.length == 1) {
        return andResourceOrderIndexNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " not in",
            Arrays.asList(values),
            "resourceOrderIndex");
        return this;
      }
    }

    public Criteria andResourceOrderIndexIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andResourceOrderIndexNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andResourceOrderIndexBetween(int value1, int value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " between",
          value1,
          value2,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexBetween(
        java.lang.Integer value1, java.lang.Integer value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " between",
          value1,
          value2,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexNotBetween(int value1, int value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " not between",
          value1,
          value2,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andResourceOrderIndexNotBetween(
        java.lang.Integer value1, java.lang.Integer value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.ResourceOrderIndex + " not between",
          value1,
          value2,
          "resourceOrderIndex");
      return this;
    }

    public Criteria andBusinessPackageNameIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " is null");
      return this;
    }

    public Criteria andBusinessPackageNameIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " is not null");
      return this;
    }

    public Criteria andBusinessPackageNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName
              + " <> ''");
      return this;
    }

    public Criteria andBusinessPackageNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName
              + " = '')");
      return this;
    }

    public Criteria andBusinessPackageNameEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " = ",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " = ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " <>",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName
              + " <>",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " <> ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " >",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " > ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " >=",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " >= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " <",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " < ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " <=",
          value,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " <= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " like",
          buffer.toString(),
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " not like",
          buffer.toString(),
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameIn(List<String> values) {

      if (values.size() == 1) {
        return andBusinessPackageNameEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " in",
            values,
            "businessPackageName");
        return this;
      }
    }

    public Criteria andBusinessPackageNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andBusinessPackageNameNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " not in",
            values,
            "businessPackageName");
        return this;
      }
    }

    public Criteria andBusinessPackageNameIn(String[] values) {

      if (values.length == 1) {
        return andBusinessPackageNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " in",
            Arrays.asList(values),
            "businessPackageName");
        return this;
      }
    }

    public Criteria andBusinessPackageNameNotIn(String[] values) {
      if (values.length == 1) {
        return andBusinessPackageNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " not in",
            Arrays.asList(values),
            "businessPackageName");
        return this;
      }
    }

    public Criteria andBusinessPackageNameIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " between",
          value1,
          value2,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageName + " not between",
          value1,
          value2,
          "businessPackageName");
      return this;
    }

    public Criteria andBusinessPackageTypeIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " is null");
      return this;
    }

    public Criteria andBusinessPackageTypeIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " is not null");
      return this;
    }

    public Criteria andBusinessPackageTypeIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType
              + " <> ''");
      return this;
    }

    public Criteria andBusinessPackageTypeIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType
              + " = '')");
      return this;
    }

    public Criteria andBusinessPackageTypeEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " = ",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageTypeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " = ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " <>",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType
              + " <>",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageTypeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " <> ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " >",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageTypeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " > ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " >=",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageTypeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " >= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " <",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageTypeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " < ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " <=",
          value,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessPackageTypeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " <= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " like",
          buffer.toString(),
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " not like",
          buffer.toString(),
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeIn(List<String> values) {

      if (values.size() == 1) {
        return andBusinessPackageTypeEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " in",
            values,
            "businessPackageType");
        return this;
      }
    }

    public Criteria andBusinessPackageTypeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andBusinessPackageTypeNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " not in",
            values,
            "businessPackageType");
        return this;
      }
    }

    public Criteria andBusinessPackageTypeIn(String[] values) {

      if (values.length == 1) {
        return andBusinessPackageTypeEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " in",
            Arrays.asList(values),
            "businessPackageType");
        return this;
      }
    }

    public Criteria andBusinessPackageTypeNotIn(String[] values) {
      if (values.length == 1) {
        return andBusinessPackageTypeNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " not in",
            Arrays.asList(values),
            "businessPackageType");
        return this;
      }
    }

    public Criteria andBusinessPackageTypeIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessPackageTypeBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " between",
          value1,
          value2,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessPackageTypeNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessPackageType + " not between",
          value1,
          value2,
          "businessPackageType");
      return this;
    }

    public Criteria andBusinessDomainIdIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " is null");
      return this;
    }

    public Criteria andBusinessDomainIdIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " is not null");
      return this;
    }

    public Criteria andBusinessDomainIdIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId
              + " <> ''");
      return this;
    }

    public Criteria andBusinessDomainIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId
              + " = '')");
      return this;
    }

    public Criteria andBusinessDomainIdEqualTo(long value) {
      return andBusinessDomainIdEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " = ",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdNotEqualTo(long value) {
      return andBusinessDomainIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdNotEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " <>",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdNotEqualToOrIsNull(long value) {
      return andBusinessDomainIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId
              + " <>",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdGreaterThan(long value) {
      return andBusinessDomainIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdGreaterThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " >",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdGreaterThanOrEqualTo(long value) {
      return andBusinessDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " >=",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdLessThan(long value) {
      return andBusinessDomainIdLessThan(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdLessThan(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " <",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdLessThanOrEqualTo(long value) {
      return andBusinessDomainIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andBusinessDomainIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " <=",
          value,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdIn(long[] values) {
      if (values.length == 1) {
        return andBusinessDomainIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " in",
            values,
            "businessDomainId");
        return this;
      }
    }

    public Criteria andBusinessDomainIdNotIn(long[] values) {
      if (values.length == 1) {
        return andBusinessDomainIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " not in",
            values,
            "businessDomainId");
        return this;
      }
    }

    public Criteria andBusinessDomainIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andBusinessDomainIdEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " in",
            values,
            "businessDomainId");
        return this;
      }
    }

    public Criteria andBusinessDomainIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andBusinessDomainIdNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " not in",
            values,
            "businessDomainId");
        return this;
      }
    }

    public Criteria andBusinessDomainIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andBusinessDomainIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " in",
            Arrays.asList(values),
            "businessDomainId");
        return this;
      }
    }

    public Criteria andBusinessDomainIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andBusinessDomainIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " not in",
            Arrays.asList(values),
            "businessDomainId");
        return this;
      }
    }

    public Criteria andBusinessDomainIdIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessDomainIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " between",
          value1,
          value2,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " between",
          value1,
          value2,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " not between",
          value1,
          value2,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainId + " not between",
          value1,
          value2,
          "businessDomainId");
      return this;
    }

    public Criteria andBusinessDomainNameIsNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " is null");
      return this;
    }

    public Criteria andBusinessDomainNameIsNotNull() {
      addCriterion(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " is not null");
      return this;
    }

    public Criteria andBusinessDomainNameIsNotEmpty() {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName
              + " is not null AND "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName
              + " <> ''");
      return this;
    }

    public Criteria andBusinessDomainNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName
              + " = '')");
      return this;
    }

    public Criteria andBusinessDomainNameEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " = ",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainNameNotEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " <>",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName
              + " is null OR "
              + IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName
              + " <>",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " <> ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessDomainNameGreaterThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " >",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainNameGreaterThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " >=",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " >= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessDomainNameLessThan(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " <",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andBusinessDomainNameLessThanOrEqualTo(String value) {

      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " <=",
          value,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str =
          new StringBuffer(IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andBusinessDomainNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " <= ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessDomainNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " like",
          buffer.toString(),
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " not like",
          buffer.toString(),
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameIn(List<String> values) {

      if (values.size() == 1) {
        return andBusinessDomainNameEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " in",
            values,
            "businessDomainName");
        return this;
      }
    }

    public Criteria andBusinessDomainNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andBusinessDomainNameNotEqualTo(values.get(0));
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " not in",
            values,
            "businessDomainName");
        return this;
      }
    }

    public Criteria andBusinessDomainNameIn(String[] values) {

      if (values.length == 1) {
        return andBusinessDomainNameEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " in",
            Arrays.asList(values),
            "businessDomainName");
        return this;
      }
    }

    public Criteria andBusinessDomainNameNotIn(String[] values) {
      if (values.length == 1) {
        return andBusinessDomainNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " not in",
            Arrays.asList(values),
            "businessDomainName");
        return this;
      }
    }

    public Criteria andBusinessDomainNameIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessDomainNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " not in ",
          subQueryBean,
          dao);
      return this;
    }

    public Criteria andBusinessDomainNameBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " between",
          value1,
          value2,
          "businessDomainName");
      return this;
    }

    public Criteria andBusinessDomainNameNotBetween(String value1, String value2) {
      addCriterion(
          IWorkspaceResourceBusinessPackageRelateDAO.BusinessDomainName + " not between",
          value1,
          value2,
          "businessDomainName");
      return this;
    }
  }
}
